<?php

defined('__MAPEXEC__') or die('No direct access allowed');

class Maps_Icon_Google_Common extends Maps_Icon_Common {
  
  private $mozPrintImage = '';
  private $printImage = '';
  private $printShadowImage = '';
  private $shadowHeight = -1;
  private $shadowImage = '';
  private $shadowWidth = -1;
  
  /**
   * Gets the print image for Gecko based browsers.
   * @param   void
   * @return  string  Image path
   */
  public function getMozPrintImage() {
    return $this->mozPrintImage;
  }
  
  /**
   * Gets print image URL for Gecko based browsers.
   * @param   void
   * @return  string  Full image URL
   */
  public function getMozPrintImageURL() {
    return $this->getImageURL( $this->getMozPrintImage() );
  }
  
  /**
   * Gets the print image path
   * @param   void
   * @return  string  Image path
   */
  public function getPrintImage() {
    return $this->printImage;
  }
  
  /**
   * Gets the print image URL
   * @param   void
   * @return  string  Full image URL
   */
  public function getPrintImageURL() {
    return $this->getImageURL( $this->getPrintImage() );
  }
  
  /**
   * Gets the print shadow image
   * @param   void
   * @return  string  Image path
   */
  public function getPrintShadowImage() {
    return $this->printShadowImage;
  }
  
  /**
   * Gets the print shadow image URL
   * @param   void
   * @return  string  Full image URL
   */
  public function getPrintShadowImageURL() {
    return $this->getImageURL( $this->getPrintShadowImage() );
  }
  
  /**
   * Gets the shadow height
   * @param   void
   * @return  integer   Height in pixels
   */
  public function getShadowHeight() {
    return $this->shadowHeight;
  }
  
  /**
   * Gets the shadow image
   * @param   void
   * @return  string  Image path
   */
  public function getShadowImage() {
    return $this->shadowImage;
  }
  
  /**
   * Gets the shadow image URL
   * @param   void
   * @return  string  Full image URL
   */
  public function getShadowImageURL() {
    return $this->getImageURL( $this->getShadowImage() );
  }
  
  /**
   * Gets the shadow image width
   * @param   void
   * @return  integer   Width
   */
  public function getShadowWidth() {
    return $this->shadowWidth;
  }
  
  /**
   * Sets the print image used by Gecko browsers
   * @param   string  Image path
   * @return  void
   */
  public function setMozPrintImage($image='') {
    $this->mozPrintImage = (string) $image;
  }
  
  /**
   * Sets the print shadow information
   * @param   integer   Width in pixels
   * @param   integer   Height in pixels
   * @param   string    Image path
   * @return  void
   */
  public function setPrintShadow($width, $height, $image) {
    $this->setPrintShadowWidth($width);
    $this->setPrintShadowHeight($height);
    $this->setPrintShadowImage($image);
  }
  
  /**
   * Sets the print shadow height
   * @param   integer   Height in pixels
   * @return  void
   */
  public function setPrintShadowHeight($height=-1) {
    $this->printShadowHeight = $height;
  }
  
  /**
   * Sets the print shadow image
   * @param   string  Image path
   * @return  void
   */
  public function setPrintShadowImage($image='') {
    $this->printShadowImage = (string) $image;
  }
  
  /**
   * Sets the print shadow width
   * @param   integer   Width in pixels
   * @return  void
   */
  public function setPrintShadowWidth($width=-1) {
    $this->printShadowWidth = $width;
  }
  
  /**
   * Sets the shadow image information
   * @param   integer   Width in pixels
   * @param   integer   Height in pixels
   * @param   string    Image path
   * @return  void
   */
  public function setShadow($width, $height, $image) {
    $this->setShadowWidth($width);
    $this->setShadowHeight($height);
    $this->setShadowImage($image);
  }
  
  /**
   * Sets the shadow height
   * @param   integer   Height in pixels
   * @return  void
   */
  public function setShadowHeight($height=-1) {
    $this->shadowHeight = $height;
  }

  /**
   * Sets the shadow image path
   * @param   string  Image path
   * @return  void
   */
  public function setShadowImage($image='') {
    $this->shadowImage = (string) $image;
  }

  /**
   * Sets the shadow width
   * @param   integer   Width in pixels
   * @return  void
   */
  public function setShadowWidth($width=-1) {
    $this->shadowWidth = $width;
  }

}
?>